import Axios from "./../utils/axios";
import api from "./../api/index";
//房产登记数据展示
function registrationPage(limit,page,hpName){
    return Axios.post(api.housePropertyRegistration.registrationPage,{limit,page,hpName})
}
//房产登记数据更新
function registrationUpdate(){
    return Axios.put(api.housePropertyRegistration.registrationUpdate)
}
//房产登记根据Id查找
function registrationFindById(id){
    return Axios.get(api.housePropertyRegistration.registrationFindById,{id})
}
//房产登记添加
function registrationAdd(id,hpNumber,hpName,hpHave,hpProperty,hpAddress,hpStructure,hpLayer,hpArea,hpInsideArea,hpPropertyStatus,hpChangeTime){
    return Axios.post(api.housePropertyRegistration.registrationAdd,{id,hpNumber,hpName,hpHave,hpProperty,hpAddress,hpStructure,hpLayer,hpArea,hpInsideArea,hpPropertyStatus,hpChangeTime})
}
//房产登记根据Id批量删除
function registrationDeletes(ids){
    return Axios.delete(api.housePropertyRegistration.registrationDeletes,{ids})
}
//房产登记根据Id删除
function registrationDelete(id){
    return Axios.delete(api.housePropertyRegistration.registrationDelete,{id})
}
//房产登记导出
function registrationDeriverText(){
    return Axios.get(api.housePropertyRegistration.registrationDeriverText)
}
export default{
    registrationPage,
    registrationUpdate,
    registrationFindById,
    registrationAdd,
    registrationDeletes,
    registrationDelete,
    registrationDeriverText
}